﻿using System;

namespace Informant.ErrorHandling
{
	public interface IErrorHandler
	{
		/// <summary>
		/// Handles the error by taking application specific and external exceptions
		///	then throwing a client friendly exception, ignoring the exception.
		/// </summary>
		/// <param name="exception">The exception.</param>
		/// <exception cref="Informant.Authentication.AuthenticationException"/>
		/// <exception cref="System.InvalidOperationException"/>
		/// <exception cref="System.Net.WebException"/>
		void MakeExceptionClientFriendly(Exception exception);
	}
}
